home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCGUIA 117
/
PC Guia 117.iso
/
Software
/
Utils
/
Software2
/
Product11
/
Setup.exe
/
MT-3.16-full-en_US
/
mt-atom.cgi
< prev
next >
Wrap
Text File
|
2005-03-08
|
735b
|
32 lines
#!/usr/bin/perl -w
# Copyright 2001-2005 Six Apart. This code cannot be redistributed without
# permission from www.movabletype.org.
#
# $Id: mt-atom.cgi 10197 2005-03-09 00:27:57Z ezra $
use strict;
my($MT_DIR);
BEGIN {
if ($0 =~ m!(.*[/\\])!) {
$MT_DIR = $1;
} else {
$MT_DIR = './';
}
unshift @INC, $MT_DIR . 'lib';
unshift @INC, $MT_DIR . 'extlib';
}
eval {
require MT::AtomServer;
my $CONFIG = $ENV{CONFIG} || $MT_DIR . 'mt.cfg';
my $app = MT::AtomServer->new( Config => $CONFIG )
or die MT::AtomServer->errstr;
local $SIG{__WARN__} = sub { $app->trace($_[0]) };
$app->run;
};
if ($@) {
print "Content-Type: text/html\n\n";
print "Got an error: $@";
}